﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="BeachesInGreeceComplete._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style7
        {
            vertical-align: bottom;
            width: 57px;
        }
        .style8
        {
            color: #993399;
            text-align: center;
            width: 57px;
        }
        .style9
        {
            text-align: center;
            color: #FF9900;
            width: 57px;
        }
        .style10
        {
            vertical-align: bottom;
            width: 59px;
        }
        .style11
        {
            color: #993399;
            text-align: center;
            width: 59px;
        }
        .style12
        {
            text-align: center;
            color: #FF9900;
            width: 59px;
        }
        .style13
        {
            vertical-align: bottom;
            width: 46px;
        }
        .style14
        {
            color: #993399;
            text-align: center;
            width: 46px;
        }
        .style15
        {
            text-align: center;
            color: #FF9900;
            width: 46px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome!
    </h2>
    <div class="aside2">
        <h3>
            Weather</h3>
        <br />
        <br />
        <a href="http://www.accuweather.com/en/gr/athens/182536/weather-forecast/182536"
            class="aw-widget-legal">
            <!--
By accessing and/or using this code snippet, you agree to AccuWeather’s terms and conditions (in English) which can be found at http://www.accuweather.com/en/free-weather-widgets/terms and AccuWeather’s Privacy Statement (in English) which can be found at http://www.accuweather.com/en/privacy.
-->
        </a>
        <div id="awcc1388599564838" class="aw-widget-current" data-locationkey="182536" data-unit="c"
            data-language="en-us" data-useip="false" data-uid="awcc1388599564838">
        </div>
        <script type="text/javascript" src="http://oap.accuweather.com/launch.js"></script>
        <br />
        <br />
        <h3>
            Most Voted Album</h3>
        <br />
        <br />
        <asp:Repeater ID="rpt_FavBeach" runat="server" DataSourceID="SqlDataSource3">
            <ItemTemplate>
                <asp:Label ID="lbl_Name" CssClass="BeachNameLabel" runat="server" Text='<%# Eval("AlbumName") %>' />
                <br />
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("ID", "ViewAlbum.aspx?ID={0}") %>'>
                        <img src='<%# Eval("Picture") %>'  alt="No picture found"  width="100" height="100" style="border-style: solid; border-width: medium; color: #009999;" />
                </asp:HyperLink>
                <br />
                <asp:Label ID="lbl_Time" runat="server" Text='<%# CalculateTime.calculateTimeNoHours(Eval("DateAdded")) %>'
                    ForeColor="#009999" />
                •
                <asp:Label ID="lbl_Views" runat="server" Text='<%# Eval("TotalVotes") %>' CssClass="myButton" />
                <br />
                By •
                <asp:HyperLink ID="HyperLink2" runat="server" Text='<%# Eval("Tourist")%>' NavigateUrl='<%# Eval("Tourist", "Profile.aspx?Tourist={0}") %>'
                    ForeColor="Red" Font-Bold="True" CssClass="red" Font-Size="Smaller">
                    <asp:Label ID="TouristLabel" CssClass="BeachNameLabel" runat="server" Text='<%# Eval("Tourist") %>' />
                </asp:HyperLink>
            </ItemTemplate>
        </asp:Repeater>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:BeachConnectionString %>"
            ProviderName="<%$ ConnectionStrings:BeachConnectionString.ProviderName %>" SelectCommand="SELECT TOP 1 * FROM TotalVotesPerAlbum ORDER BY TotalVotes DESC, ID DESC">
        </asp:SqlDataSource>
        <br />
        <br />
        <h3>
            Best SandCastle</h3>
        <br />
        <br />
        <asp:Repeater ID="rpt_BestSandCastle" runat="server" DataSourceID="SqlDataSource4">
            <ItemTemplate>
                <asp:Label ID="lbl_Name" CssClass="BeachNameLabel" runat="server" Text='<%# Eval("CastleName") %>' />
                <br />
                <asp:HyperLink ID="hl_SandCastle" runat="server" NavigateUrl='<%# Eval("ID", "ViewSandCastle.aspx?ID={0}") %>'>
                        <img src='<%# Eval("Thumbnail") %>'  alt="No picture found"  width="100" height="100" style="border-style: solid; border-width: medium; color: #009999;" />
                </asp:HyperLink>
                <br />
                <asp:Label ID="lbl_Time" runat="server" Text='<%# CalculateTime.calculateTimeNoHours(Eval("DateAdded")) %>'
                    ForeColor="#009999" />
                •
                <asp:Label ID="lbl_Views" runat="server" Text='<%# Eval("TotalVotes") %>' CssClass="myButton" />
                <br />
                By •
                <asp:HyperLink ID="HyperLink2" runat="server" Text='<%# Eval("Tourist")%>' NavigateUrl='<%# Eval("Tourist", "Profile.aspx?Tourist={0}") %>'
                    ForeColor="Red" Font-Bold="True" CssClass="red" Font-Size="Smaller">
                </asp:HyperLink>
            </ItemTemplate>
        </asp:Repeater>
        <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:BeachConnectionString %>"
            ProviderName="<%$ ConnectionStrings:BeachConnectionString.ProviderName %>" SelectCommand="SELECT TOP 1 * FROM TotalVotesPerCastle ORDER BY TotalVotes DESC, ID DESC">
        </asp:SqlDataSource>
        <br />
        <br />
        <h3>
            Useful Links</h3>
        <br />
        <table>
            <tr>
                <td>
                    <asp:ImageButton ID="ib_Travel" runat="server" ImageUrl="Images/travel-icon.png"
                        PostBackUrl="http://www.visitgreece.gr/en/travelling_to_greece" />
                </td>
                <td>
                    <asp:LinkButton ID="lb_Travel" runat="server" PostBackUrl="http://www.visitgreece.gr/en/travelling_to_greece">Travelling to Greece</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:ImageButton ID="ib_Health" runat="server" ImageUrl="Images/blue_medical.png"
                        PostBackUrl="http://www.visitgreece.gr/en/before_you_travel/health_and_safety" />
                </td>
                <td>
                    <asp:LinkButton ID="lb_Health" runat="server" PostBackUrl="http://www.visitgreece.gr/en/before_you_travel/health_and_safety">Health and Safety</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:ImageButton ID="ib_PassPort" runat="server" ImageUrl="Images/passport.png" PostBackUrl="http://www.visitgreece.gr/en/before_you_travel/passports_and_visas" />
                </td>
                <td>
                    <asp:LinkButton ID="lb_PassPort" runat="server" PostBackUrl="http://www.visitgreece.gr/en/before_you_travel/passports_and_visas">Passports and Visas</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:ImageButton ID="ib_Weather" runat="server" ImageUrl="Images/weather.png" PostBackUrl="http://www.visitgreece.gr/en/weather" />
                </td>
                <td>
                    <asp:LinkButton ID="lb_Weather" runat="server" PostBackUrl="http://www.visitgreece.gr/en/weather">Weather</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:ImageButton ID="ib_Tips" runat="server" ImageUrl="Images/Tips.png" PostBackUrl="http://www.visitgreece.gr/en/before_you_travel/travel_tips" />
                </td>
                <td>
                    <asp:LinkButton ID="lb_Tips" runat="server" PostBackUrl="http://www.visitgreece.gr/en/before_you_travel/travel_tips">Travel Tips</asp:LinkButton>
                </td>
            </tr>
        </table>
        <br />
    </div>
    <div class="mainDiv2">
        <div class="centered">
            <h3>
                Beaches In Greece</h3>
        </div>
        <div class="mainDiv5">
            <p>
                Greece is the best place to lay under the hot sun, see magical sunsets and swim
                in exotic beaches. Here you can find the best beaches in Greece by searching through
                our list of beaches or you can add your own undiscovered beautiful beach. Have fun
                exploring among the most beautiful sceneries in the world!
            </p>
        </div>
        <br />
        <br />
        <div class="centered">
            <h3>
                <asp:Label ID="lbl_Banner" runat="server"></asp:Label></h3>
        </div>
        <br />
        <div class="mainDiv3">
            <div id="banner">
                <div id="slider-wrapper">
                    <div id="slider" class="nivoSlider">
                        <<asp:Image ID="Image1" runat="server" />
                        <<asp:Image ID="Image2" runat="server" />
                        <<asp:Image ID="Image3" runat="server" />
                    </div>
                </div>
            </div>
        </div>
        <br />
        <br />
        <br />
        <div class="centered">
            <h3>
                Site Activity</h3>
        </div>
        <div class="mainDiv5">
            <p>
                <asp:Chart ID="Chart2" runat="server" DataSourceID="SqlDataSource2" Palette="SeaGreen"
                    Height="300px" Width="500px">
                    <Series>
                        <asp:Series Name="Series1" ChartType="Bubble" XValueMember="Activity" YValueMembers="TotalActivity"
                            YValuesPerPoint="2">
                        </asp:Series>
                    </Series>
                    <ChartAreas>
                        <asp:ChartArea Name="ChartArea1">
                        </asp:ChartArea>
                    </ChartAreas>
                </asp:Chart>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:BeachConnectionString %>"
                    ProviderName="<%$ ConnectionStrings:BeachConnectionString.ProviderName %>" SelectCommand="SELECT * FROM [TotalSiteActivity]">
                </asp:SqlDataSource>
            </p>
        </div>
        <div class="centered">
            <h3>
                User Activity</h3>
        </div>
        <div class="mainDiv5">
            <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1" Height="200px"
                Width="200px" Palette="SeaGreen" CssClass="centeredImg">
                <Series>
                    <asp:Series Name="Series1" ChartType="Pie" XValueMember="Tourist" YValueMembers="TotalPosts"
                        YValuesPerPoint="2">
                    </asp:Series>
                </Series>
                <ChartAreas>
                    <asp:ChartArea Name="ChartArea1">
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:BeachConnectionString %>"
                ProviderName="<%$ ConnectionStrings:BeachConnectionString.ProviderName %>" SelectCommand="SELECT * FROM [PostsPerTourist]">
            </asp:SqlDataSource>
            <br />
            <div class="tableRight">
                <table>
                    <tr>
                        <td class="style10">
                            <asp:Image ID="Image5" runat="server" ImageUrl="Images/wave1.png" />
                        </td>
                        <td class="style7">
                            <asp:Image ID="Image4" runat="server" ImageUrl="Images/wave2.png" />
                        </td>
                        <td class="style13">
                            <asp:Image ID="img_lvl3" runat="server" ImageUrl="Images/wave3.png" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style11">
                            <strong>Swimmer</strong>
                        </td>
                        <td class="style8">
                            <strong>Tourist</strong>
                        </td>
                        <td class="style14">
                            <strong>Greece Lover</strong>
                        </td>
                    </tr>
                    <tr>
                        <td class="style12">
                            0 - 19 Posts
                        </td>
                        <td class="style9">
                            20 - 39 Posts
                        </td>
                        <td class="style15">
                            40 or more Posts
                        </td>
                    </tr>
                </table>
            </div>
            <br />
            <br />
            <br />
        </div>
    </div>
    <script type="text/javascript" src="Scripts/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript">
        $(window).load(function () {
            $('#slider').nivoSlider();
        });

    </script>
</asp:Content>
